Skip to content

[Snippets] Fix text-to-image fetch snippets #1317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 31, 2025

Conversation

hanouticelina
Copy link
Contributor

@hanouticelina hanouticelina commented Mar 28, 2025

with @Wauplin, we realized that some text-to-image js snippets were incorrect, the key use to pass the prompt is different from a provider to another, so it's better to get the inputs from the body instead.

EDIT: this PR does not fix totally the issue, since the input keys are customized per provider in the textToImage function. This is fixed in #1315.

EDIT 2: in a later PR we will apply a linter on the generated snippets which should make the snippets much nicer!

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding that out!

@hanouticelina hanouticelina requested a review from Wauplin March 28, 2025 18:23
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hanouticelina hanouticelina merged commit 6c9b6bf into main Mar 31, 2025
5 checks passed
@hanouticelina hanouticelina deleted the fix-text-to-image-snippets branch March 31, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants